package com.tianlei.guaji.msg;

import com.bingquan.BaseMessageCode;
import com.bingquan.base.msg.AbstractRequestBean;
<#list reqs as req>
import com.tianlei.guaji.msg.${req.module}.${req.name}RequestMsg;
</#list>

/**通信消息号常量类*/
public class MessageCode implements BaseMessageCode{
	
	<#list reqs as req>
	/**${req.desc}*/
	public final static short ${req.consName} = ${req.code};
	</#list>
	<#list resps as resp>
	/**${resp.desc}*/
	public final static short ${resp.consName} = ${resp.code};
	</#list>


	public static void registerRequestBeanClass() {
		<#list reqs as req>
			AbstractRequestBean.registerRequestBeanClass(${req.consName},com.tianlei.guaji.msg.${req.module}.${req.name}RequestMsg.class);
		</#list>
	}
}